package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Compensation;
import cn.wolfcode.crm.query.CompensationQueryObject;
import cn.wolfcode.crm.query.TaskQueryObject;

import java.util.List;

public interface CompensationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Compensation record);

    Compensation selectByPrimaryKey(Long id);

    List<Compensation> selectAll();

    int updateByPrimaryKey(Compensation record);

    int query4Count(CompensationQueryObject qo);

    List<?> query4List(CompensationQueryObject qo);

    void insertEmpAndDept(Compensation compensation);

    Compensation selectByEmployee(Long id);

    void updateEmpAndDept(Compensation compensation);

    void changeState(Compensation compensation);
}